﻿#pragma once
#include "CViewportController.h"

// CBase1Dlg 对话框

class CBase1Dlg : public CDialogEx
{
	DECLARE_DYNAMIC(CBase1Dlg)

public:
	CBase1Dlg(CWnd* pParent = nullptr);   // 标准构造函数
	virtual ~CBase1Dlg();

// 对话框数据
#ifdef AFX_DESIGN_TIME
	enum { IDD = IDD_DIALOG_BASE_1 };
#endif

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV 支持

	DECLARE_MESSAGE_MAP()
public:
	/*CBase2Dlg B2Dlg;
	CBase3Dlg B3Dlg;*/

	CViewportController* m_pViewController;
	POINT MousePos;
	bool bBD;
	bool m_bBtnDn;
	

	virtual BOOL OnInitDialog();
	afx_msg void OnMove(int x, int y);
	afx_msg void OnNcLButtonDown(UINT nHitTest, CPoint point);
	afx_msg void OnMoving(UINT fwSide, LPRECT pRect);
	afx_msg void OnNcLButtonUp(UINT nHitTest, CPoint point);
	afx_msg void OnClose();
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
	afx_msg void OnLinear0();
	afx_msg void OnLinear5();
	afx_msg void OnLinear10();
	afx_msg void OnLinear2();
};
